﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Yunwei.Domain.Models;

namespace Yunwei.Web.Models
{
    public class HomeViewModel
    {
        /// <summary>
        /// 购物车菜品数量
        /// </summary>
        public int Quantity { get; set; }


        private List<Staff> _staffs;
        /// <summary>
        /// 厨师信息
        /// </summary>
        public List<Staff> Staffs
        {
            get 
            {
                if (_staffs == null)
                    _staffs = new List<Staff>();
                return _staffs; 
            }
            set { _staffs = value; }
        }

        private List<Restaurant> _restaurant;
        /// <summary>
        /// 餐馆信息
        /// </summary>
        public List<Restaurant> Restaurants
        {
            get 
            {
                if (_restaurant == null)
                    _restaurant = new List<Restaurant>();
                return _restaurant; 
            }
            set { _restaurant = value; }
        }

        private List<Food> _foods;

        public List<Food> Foods
        {
            get 
            {
                if (_foods == null)
                    _foods = new List<Food>();
                return _foods; 
            }
            set { _foods = value; }
        }
    }
}